# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-autograd
_pkgorig=autograd
pkgver=1.6.2
pkgrel=1
pkgdesc="Efficiently computes derivatives of numpy code"
url="https://github.com/HIPS/autograd"
arch="noarch"
license="MIT"
options="!check" # no tests in pypi version/ no latest GH releases
depends="
	python3
	py3-future
	py3-numpy
	py3-scipy
	"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/a/autograd/autograd-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
e6552a80f5226228160bf66cda35a35cc2226180b0981792e22f4024228a4fe0651f14327962f3b6a031da10e3ba692914dbb4e9d375f9fc026737b5b17101fc  py3-autograd-1.6.2.tar.gz
"
